﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Conference.Domain.Entity;
using Conference.Domain.Repository;

namespace Conference.EntityFrameworkCore.RepositoryImpl
{
    public class CustomerRepository : ICustomerRepository
    {
        private readonly ConferenceContext _conferenceContext;
        public CustomerRepository(ConferenceContext conferenceContext)
        {
            _conferenceContext = conferenceContext;
        }

        /// <summary>
        /// 添加客户
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task AddCustomer(Customer input)
        {
           await _conferenceContext.CustomerInfo.AddAsync(input);
        }
    }
}
